#include "ErrorLog.h"
#include <stdarg.h>
void OutputError(std::string* output, const char* _Format, ...)
{
#define LOG_BUF_SIZE	512
	va_list ap;
	char buf[LOG_BUF_SIZE] = { 0 };
	va_start(ap, _Format);
	vsnprintf(buf, LOG_BUF_SIZE, _Format, ap);
	va_end(ap);
	if (output)
		*output = buf;
	printf("%s\n", buf);
}
